﻿
// ProjectAADlg.h: 头文件
//

#pragma once
#include"MotorDlg.h"
#include"LogDlg.h"
#include "ChangeProject.h"
#include "ImageCaptureDlg.h"
#include "SFRSettingDlg.h"
#include "TcpipDlg.h"
#include "WhiteTestDlg.h"


// CProjectAADlg 对话框
class CProjectAADlg : public CDialogEx
{
// 构造
public:
	CProjectAADlg(CWnd* pParent = nullptr);	// 标准构造函数

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_PROJECTAA_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


// 实现
protected:
	HICON m_hIcon;
	CMenu m_menu;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	CMotorDlg*   m_cMotorDlg = nullptr;
	CLogDlg*   m_cLogDlg = nullptr;
	CChangeProject*  m_cChangeProjectDlg = nullptr;
	CImageCaptureDlg*  m_cCaptureDlg = nullptr;
	CSFRSettingDlg*  m_cSfrSettingDlg = nullptr;
	CTcpipDlg*  m_cTcpipDlg = nullptr;
	CWhiteTestDlg*  m_cWhiteDlg = nullptr;

	LRESULT OnReceiveServerMsg(WPARAM wParam, LPARAM lParam);
	CRect m_rcUiRect;
	CRect OriRect[20];
	int RectW[20] = { 0 };
	int RectH[20] = { 0 };
	void Repaint(CWnd * pWnd, int last_Width, int now_Width, int last_Height, int now_Height, int cnt);
	afx_msg void OnOpenLogDlg();
	afx_msg void OnOpenMotorDlg();
	afx_msg void OnOpenProjectDlg();
	afx_msg void OnBnClickedButtonStart();
	afx_msg void OnBnClickedButtonStop();
	afx_msg void OnOpenCaptureDlg();
	afx_msg void OnOpenSFRDlg();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnOpenTcpipDlg();
	virtual void OnCancel();
	afx_msg void OnOpwnWhiteDlg();
	afx_msg void OnBnClickedButtonSave();
	afx_msg void OnLogin();
};
